package com.yihusitian.zsxq.sg.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * @Description 配置类
 * @Author LeeHo
 * @Date 2020/8/26 13:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlRootElement(name = "config")
public class GenerateConfig {

    @XmlElement(name = "baseinfo")
    private BaseInfo baseinfo;

    @XmlElement(name = "datasource")
    private DatasourceInfo datasource;

    @XmlElement(name = "tables")
    private TablesInfo tables;

    @XmlElement(name = "doinfo")
    private DOInfo doInfo;

    @XmlElement(name = "voinfo")
    private VOInfo voInfo;

    @XmlElement(name = "dtoinfo")
    private DTOInfo dtoInfo;


    @XmlElement(name = "serviceinfo")
    private ServiceInfo serviceInfo;

    @XmlElement(name = "serviceimplinfo")
    private ServiceImplInfo serviceImplInfo;

    @XmlElement(name = "mapperinfo")
    private MapperInfo mapperInfo;

    @XmlTransient
    public BaseInfo getBaseinfo() {
        return baseinfo;
    }

    @XmlTransient
    public DatasourceInfo getDatasource() {
        return datasource;
    }

    @XmlTransient
    public TablesInfo getTables() {
        return tables;
    }

    @XmlTransient
    public DOInfo getDoInfo() {
        return doInfo;
    }

    @XmlTransient
    public VOInfo getVoInfo() {
        return voInfo;
    }

    @XmlTransient
    public DTOInfo getDtoInfo() {
        return dtoInfo;
    }

    @XmlTransient
    public ServiceInfo getServiceInfo() {
        return serviceInfo;
    }

    @XmlTransient
    public ServiceImplInfo getServiceImplInfo() {
        return serviceImplInfo;
    }

    @XmlTransient
    public MapperInfo getMapperInfo() {
        return mapperInfo;
    }

}